#!/bin/bash
ps -ef | grep node | grep /ly/web/ | cut -c 9-15 | xargs kill -9 #杀掉之前的进程，否则每次重启会多一个守护进程monitor
cd /usr/ly/web/project
./node_modules/forever/bin/forever start --spinSleepTime 5000 --uid 'ly-web' -l '/usr/ly/web/project/logs/forever.log' -a server.bundle.js '/usr/ly/web/project/config.json'